package cn.stylefeng.guns.modular.gridsystem.modbus;

import com.serotonin.modbus4j.ModbusSlaveSet;
import org.springframework.boot.CommandLineRunner;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;

//@Component
public class ModbusTcpRunner implements CommandLineRunner {
    @Resource
    private ModbusSlaveSet modbusSlaveSet;
    @Override
    @Async
    public void run(String... args) throws Exception {
//        modbusSlaveSet.start();
    }
}
